package qst.com.bacK.service;

import qst.com.bacK.pojo.entity.Choice;
import qst.com.bacK.pojo.entity.PersonalityDimension;
import qst.com.bacK.pojo.entity.Question;
import qst.com.bacK.question.QuestionQueryParam;

import java.util.List;

/**
 * Author:   msh
 * Date:     2024/10/10 下午10:15
 * Description:
 */
public interface QuestionService {
    List<Question> find(QuestionQueryParam param);

    List<Choice> findChoices(Integer id);

    Question findById(int id);

    void deleteById(int id);

    List<Integer> findDimensionIdByQuestion(int qid);

    void attachDimension(int qid, int[] pids);

    void save(Question question, List<Choice> choices);

    void update(Question question, List<Choice> choices);

    List<PersonalityDimension> findDimensionByQuestion(Integer id);
}
